<?php
function __autoload($file) {
    include_once "class/".$file.".php";
}
$db = DB::getInstance();
if ($_SERVER['REQUEST_METHOD'] == "POST") {
    $data = $_POST['data'];

    $db->updateSiteData($data);
}